package com.ninthgroup.service;

import com.ninthgroup.entity.TechnicalOffice;
import com.ninthgroup.vo.Result;

/**
 * @author ：Student A Wei
 * @date ：Created in 2022/10/18 16:34
 * @description：科室管理接口
 * @modified By：
 * @version:
 */
public interface TechnicalOfficeService {
    // 查询科室
    Result selectAll(Integer currentPage, Integer pageSize, String tName, Integer tStatus);

    //删除科室
    Result deleteByTechnicalOfficeId(Integer tId);

    //添加科室
    Result insertAdd(TechnicalOffice technicalOffice);


    /**
     * fetch data by show
     * @create by: 1452863884@qq.com rcg
     * @description:修改科室信息
     * @create time: 2022/11/4 15:31
     * @param technicalOffice
     * @return com.ninthgroup.vo.Result
     */
    Result update(TechnicalOffice technicalOffice);

    /**
     * fetch data by show
     * @create by: 1452863884@qq.com rcg
     * @description:更新科室的状态
     * @create time: 2022/11/4 15:31
     * @param tId
     * @param tStatus
     * @return com.ninthgroup.vo.Result
     */
    Result updateStatus(Integer tId, Integer tStatus);


}